# import requests
# from bs4 import BeautifulSoup
# import json
# import time
# from fake_useragent import UserAgent
#
# class DouyinLiveMonitor:
#     def init(self):
#         self.headers = {å
#             'User-Agent': UserAgent().random,
#             'Cookie': '你的抖音cookie'
#         }
#         self.live_api = "https://live.douyin.com/webcast/room/web/enter/"
#
#     def get_live_info(self, room_id):
#         params = {
#             'aid': 6383,
#             'live_id': 1,
#             'device_platform': 'web',
#             'room_id': room_id
#         }
#         try:
#             response = requests.get(
#                 self.live_api,
#                 headers=self.headers,
#                 params=params
#             )
#             return response.json()
#         except Exception as e:
#             print(f"请求失败: {e}")
#             return None